package com.bdqn.zhao.controller;


import com.bdqn.zhao.dao.QtComplaintMapper;
import com.bdqn.zhao.pojo.QtComplaint;
import com.bdqn.zhao.service.QtComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 * 投诉管理表 前端控制器
 * </p>
 *
 * @author zhangsan
 * @since 2023-04-24
 */
@Controller
@RequestMapping("/qtComplaint")
public class QtComplaintController {

    @Autowired
    private QtComplaintMapper qtComplaintMapper;
    @Autowired
    private QtComplaintService qtComplaintService;
    @GetMapping("/sltAll/{a}/{b}")
    public String selct(@PathVariable String a, @PathVariable String b, String comolaintId, HttpSession session){
        List<QtComplaint> selectJ = qtComplaintService.selectJ(a, b, comolaintId);
        session.setAttribute("QtComplanintlist",selectJ);
        return "";
    }
    @GetMapping("/del/{a}")
    public Boolean remove(@PathVariable int a){
        int i = qtComplaintService.delectQt(a);
        Boolean flah = null;
        if (i>0){
            flah=true;
        }
        return flah;
    }
    /**
     * 单号查询
     */
}

